﻿using CPPEI.Coolzon.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI
{
    [XConfigRoot("Settings")]
    public class Settings
    {
        private static Settings s_instance;
        public static Settings Instance
        {
            get
            {
                if (s_instance == null)
                {
                    s_instance = new Settings();
                }
                return s_instance;
            }
        }

        private Settings()
        {
            BigImageResouceQuality = 1.0d;
        }

        /// <summary>
        /// 大图片资源的质量，0.1-1.0，越小越模糊占有内存越小
        /// </summary>
        [XConfig("BigImageResouceQuality")]
        public double BigImageResouceQuality { get; private set; }
    }
}
